<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <div class="form-group">
        <label for="c-community_code" class="control-label col-xs-12 col-sm-2">{:__('Community_code')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="communityid" data-rule="required" class="form-control selectpicker show-tick" name="row[communityid]" data-live-search="true" value="{$row.communityid}">

                {foreach name="community" item="vo"}

                <option value="{$vo.id}" {in name="vo.id" value="$row.communityid" }selected{/in}>{$vo.name}
                    </option> {/foreach} </select> </div>
    </div>

    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label for="paycid" class="control-label col-xs-12 col-sm-2">{:__('PayCompany')}:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="paycid" data-rule="required" class="form-control selectpicker show-tick" name="row[paycid]" data-live-search="true">
                <option value="0">无</option>
                {foreach name="paycompany" item="vo"}
                <option value="{$vo.id}" {in name="vo.id" value="$row.paycid" }selected{/in}>{$vo.companyname}
                </option>
                {/foreach}
            </select>
        </div>
    </div>



    <div class="form-group">
        <label for="suppliercid" class="control-label col-xs-12 col-sm-2">{:__('Supplier')}:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="suppliercid" data-rule="required" class="form-control selectpicker show-tick" name="row[suppliercid]" data-live-search="true">
                <option value="0">无</option>
                {foreach name="suppliercompany" item="vo"}
                <option value="{$vo.id}" {in name="vo.id" value="$row.suppliercid" }selected{/in}>{$vo.companyname}
                </option>
                {/foreach}
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="c-start_time" class="control-label col-xs-12 col-sm-2">{:__('StartDate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[startdate]" data-date-default-date="2021-01-01" type="text" value="{$row.startdate|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-end_time" class="control-label col-xs-12 col-sm-2">{:__('EndDate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[endate]" type="text " data-date-default-date="2021-01-01" value="{$row.endate|datetime}">
        </div>
    </div>

    <div class="form-group">
        <label for="amount" class="control-label col-xs-12 col-sm-2">{:__('TotalAmount')}（&yen;）:</label>
        <div class="col-xs-12 col-sm-6">
            <input type="text" class="form-control" id="amount" name="row[totalamount]" value="{$row.totalamount}" data-rule="required;decimal" />
        </div>
    </div>

    <div class="form-group">
        <label for="c-remarks" class="control-label col-xs-12 col-sm-2 ">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control" name="row[remarks]" type="text">{$row.remarks}</textarea>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="button" class="btn btn-default btn-embossed" onClick="closeLayerWin(this)">{:__('Close')}</button>
        </div>
    </div>
</form>